import { ref, reactive } from 'vue'
import { tableData } from './table'
export let formItems = {{searchForm}}
export let rules = {}
export let formData = reactive({
    {{each searchForm}}
    {{$value.value}}:""
    {{/each}}
})
export const form = ref(null)
export function submit() {
  console.log(form)
  form.value
    .validate()
    .then(() => {
      tableData.length = 0
    })
    .catch(() => {
      console.log('不通过')
    })
}
